// 后台路由
// 后台首页
const Home = () => import('../views/admin/home/Home.vue')

// 增加分类
const categoryAdd = () => import('../views/admin/categoryAdd/CategoryAdd.vue')
// 分类管理
const categoryManage = () => import('../views/admin/categoryManage/CategoryManage.vue')


// 商品审核
const goodsCheck = () => import('../views/admin/goodsCheck/GoodsCheck.vue')

// 商品管理
const goodsManage = () => import('../views/admin/goodsManage/GoodsManage.vue')
// 增加员工
const staffAdd = () => import('../views/admin/staffAdd/StaffAdd.vue')
// 员工管理
const staffManage = () => import('../views/admin/staffManage/StaffManage.vue')
// 用户管理
const userManage = () => import('../views/admin/userManage/UserManage.vue')
//权限管理
const management = () => import('../views/admin/management/Management.vue')

//用户增长统计
const userStats = () => import('../views/admin/dataStats/UserStats.vue')

//分类统计
const ClassStats = () => import('../views/admin/dataStats/ClassStats.vue')

//流水统计
const ActiveMoeny = () => import('../views/admin/dataStats/ActiveMoeny.vue')

//用户反馈
const Feedback = () => import('../views/admin/feedback/Feedback.vue')



const adminChild = [
	{
		path: '/',
		component: Home,
	},
	{
		path: 'home',
		component: Home,
	},
	{
		path: 'categoryAdd',
		component: categoryAdd,
	},
	{
		path: 'categoryManage',
		component: categoryManage,
	},
	{
		path: 'goodsCheck',
		component: goodsCheck,
	},
	{
		path: 'goodsManage',
		component: goodsManage,
	},
	{
		path: 'staffAdd',
		component: staffAdd,
	},
	{
		path: 'staffManage',
		component: staffManage,
	},
	{
		path: 'userManage',
		component: userManage,
	},
	{
		path: 'management',
		component: management,
	},
	{
		path: 'userStats',
		component: userStats,
	},
	{
		path: 'classStats',
		component: ClassStats,
	},
	{
		path: 'activeMoeny',
		component: ActiveMoeny,
	},
	{
		path: 'feedback',
		component: Feedback,
	}

]

export default adminChild
